<HTML>
<HEAD>
<TITLE>DefaultProjectName - OnButtonPress</TITLE>
<script type="text/javascript">
  var relPathToCommmon = "../../common/";
  var relPathToHelpDir = "../../common/help/";
</script>
<script type="text/javascript" src="../../common/jsdyn.js" language="JavaScript"></script>
<script type="text/javascript" src="../../common/js.js" language="JavaScript"></script>
<script type="text/javascript" src="leftmenu.js" language="JavaScript"></script>
<script type="text/javascript">
  var toSearchPage     = "_search','../../search";
  Body1();
</script>
<div class="headerPage">OnButtonPress</div>
<div class="path"><a href="#" OnMouseOver="link('','../../index',this)" class="pathLink">OOXlib</A><img src="../../common/path-arrow.gif" class="path-arrow"><a href="#" OnMouseOver="link('_dir','include0',this)" class="pathLink">include</A><img src="../../common/path-arrow.gif" class="path-arrow"><a href="#" OnMouseOver="link('_class','CButton4032',this)" class="pathLink">CButton</A><img src="../../common/path-arrow.gif" class="path-arrow"><span class="pathNonLink">OnButtonPress</span></div>
<script type="text/javascript">
 Body2();
 BodyLeftMenuStart();
WriteLeftMenu("","","","");
 BodyLeftMenuEnd();
 Body3();
</script>
<span class="tabInActive"><a href="#" OnMouseOver="linkTab('_member','OnButtonPress466518356','_description',this)" class="tabLinkInActive">Description</a></span>
<span class="tabActive"><a href="#" OnMouseOver="linkTab('_member','OnButtonPress466518356','_source',this)" class="tabLinkActive">Source</a></span>
<span class="tabInActive"><a href="#" OnMouseOver="linkTab('_member','OnButtonPress466518356','_callgraph',this)" class="tabLinkInActive">Call Graph</a></span>
<script type="text/javascript">
 Body4();
</script>
<div class="contentAirTop"></div>
<div class="paragraph2NoTopPadding">Start Line: 179</div>
<pre class="codeExamples">
void <a href="#" onMouseOver="link('_member','OnButtonPress466518356',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>void&nbsp;&nbsp;OnButtonPress<BR>(const unsigned int iButton, const int iX  __attribute__((unused)), const int iY  __attribute__((unused)))',CAPTION,'<strong>Brief description</strong><BR>Handles mouse buttons press.');" onMouseOut="return nd();">OOXlib::CButton::OnButtonPress</a>(const unsigned int iButton, const int iX __attribute__((unused)), const int iY __attribute__((unused)))
                                                                                                            {
    // If the left mouse button was pressed, set the m_bIsButtonPressed to true and refresh the button window.
    if(Button1 == iButton) {
        <a href="#" onMouseOver="link('_member','m_bIsButtonPressed3760068007',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>bool&nbsp;&nbsp;m_bIsButtonPressed ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_bIsButtonPressed</a>  = true;
        // XClearWindow can generate BadMatch and BadWindow errors.
        ::XClearWindow(<a href="#" onMouseOver="link('_member','m_pXServerConnection2399711695',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>CXServerConnection *&nbsp;&nbsp;m_pXServerConnection ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_pXServerConnection</a>-&gt;Get(), <a href="#" onMouseOver="link('_member','m_Window2399711695',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>::Window&nbsp;&nbsp;m_Window ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_Window</a>);
        ::XFlush(<a href="#" onMouseOver="link('_member','m_pXServerConnection2399711695',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>CXServerConnection *&nbsp;&nbsp;m_pXServerConnection ',CAPTION,'<strong>Brief description</strong><BR>');" onMouseOut="return nd();">m_pXServerConnection</a>-&gt;Get());
        <a href="#" onMouseOver="link('_member','OnExpose3759871374',this); overLibDiagram();return overlib('<strong>Syntax</strong><BR>void&nbsp;&nbsp;OnExpose&nbsp;&nbsp;()',CAPTION,'<strong>Brief description</strong><BR>Expose event handler, draws button graphics and text.');" onMouseOut="return nd();">OnExpose</a>();
    }
}
</pre><div class="contentAirBottom"></div>
<script type="text/javascript">
 Body5();
Statistics("","","","","");
 Body6();
SetPageTab('_member','_source');
</script>
